
  // 添加购物车效果
    $('.right_content').on('click','.shopping_car_img',function () {
	var cart = $('.fly');
	var  ids=$(this).children(".idsDate").attr("dat-value");
	console.log(ids)
    var imgtodrag = $(this).parent().parent().find('img').eq(0);
	if (imgtodrag) {
		var imgclone = imgtodrag.clone().offset({
			top: imgtodrag.offset().top,
			left: imgtodrag.offset().left
		}).css({
			'opacity': '0.5',
			'position': 'absolute',
			'height': '100px',
			'width': '100px',
			'z-index': '999999'
		}).appendTo($('body')).animate({
			'top': cart.offset().top+10,
			'left': cart.offset().left+10,
			'width': 15,
			'height': 15
		}, 1000, 'easeInOutExpo');
		setTimeout(function () {
			cart.effect('shake', { times: 2 }, 200);
		}, 1500);
		imgclone.animate({
			'width': 0,
			'height': 0
		}, function () {
			$(this).detach();
		});
		vm.addShoppingCart(ids)
	}
});

